/* 抵用卷 */

var status = 0;

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (mode == 0) {
        im.dispose();
        return;
    } else {
        status++;
    }
    if (status == 0) {
		im.gainNX(1,15000);
        im.sendOk("您已经成功收到PPMS给予的15000点卷！");
	    im.gainItem(2433478, -1);		
		 im.worldSpouseMessage(0x2C, "[敲打箱子の点券赠送] : "+ im.getPlayer().getName()+"获得了15000点券大家恭喜他吧！");			
        im.dispose();
    }
}
